<?php
class Type_Job extends Jobtype{
    static function getname($id){
        $name = Jobtype::model()->findByPk($id);
        return $name->name;
    }
    
    public static function getJobType() {
		$sql = Yii::app()->db->createCommand('select * from tbl_jobtype');
		$type = CHtml::listData($sql->queryAll(), 'id', 'name');
		return $type;

	}
}

?>